// 引入 axios
import axios from "axios";

export const baseApi = 'http://8.140.206.29:9090';
// export const baseApi = 'http://localhost:9090';
 const baseTarget = 'api';

 
//传送json格式的get请求
export const getRequestInfo=(url,params)=>{
    return axios({
        method:'get',
        url:`${baseTarget}${url}`,
        data: params,
    })
}

//传送json格式的get请求
export const getRequestList=(url,param)=>{
    return axios({
        method:'get',
        url:`${baseTarget}${url}`,
        params: param
    })
}
